package com.lx.cloud;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.reactive.DeferringLoadBalancerExchangeFilterFunction;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableDiscoveryClient
public class CloudGatewayApplication {


    public static void main(String[] args) {
        SpringApplication.run(CloudGatewayApplication.class, args);
    }

//    @Bean
//    public DeferringLoadBalancerExchangeFilterFunction deferringLoadBalancerExchangeFilterFunction(){
//        return new DeferringLoadBalancerExchangeFilterFunction(new ObjectProvider() {
//            @Override
//            public Object getObject() throws BeansException {
//                return null;
//            }
//
//            @Override
//            public Object getObject(Object... objects) throws BeansException {
//                return null;
//            }
//
//            @Override
//            public Object getIfAvailable() throws BeansException {
//                return null;
//            }
//
//            @Override
//            public Object getIfUnique() throws BeansException {
//                return null;
//            }
//        });
//    }

}
